package cn.yanxiaohui.common.util;

import cn.hutool.http.HttpUtil;
import cn.hutool.json.JSONUtil;

import java.util.HashMap;
import java.util.Map;

public class ExcelUtils {

    public static void main(String[] args){
        Map<String, Object> params = new HashMap<String, Object>(0);
        params.put("pageNum", 1);
        params.put("pageSize", 15);
        params.put("prvId", 101L);
        params.put("status", (byte)1);
        params.put("brandId", 2L);
        params.put("assessmentType",1);
        params.put("approvalStatus", 0);
        params.put("isDangerous", 1);
        params.put("dangerLevel", 1);
        params.put("startTimeStr", "2019-06-06");
        params.put("endTimeStr", "2018-06-06");
        params.put("searchText", "1");
        try {
            String s = JSONUtil.toJsonStr(JSONUtil.parseFromMap(params));
            String result = HttpUtil.post("http://192.168.1.247:9002/service/prod/middle/tableByParams", s);
            System.out.println(result);
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}

